package secloud

import (
	"crypto/tls"
	"github.com/go-resty/resty/v2"
	"time"
)

var BaseSvc *BaseClient

func init() {
	c := resty.New().
		SetRetryCount(3).
		SetTimeout(60 * time.Second).
		SetTLSClientConfig(&tls.Config{InsecureSkipVerify: false})

	BaseSvc = &BaseClient{
		C: c,
	}
}

type BaseClient struct {
	C *resty.Client
}
